package Dungeoneering.Doors;

import org.powerbot.game.api.wrappers.Tile;

import Dungeoneering.Entities.Door;
import Dungeoneering.Entities.Room;
import Dungeoneering.Entities.Room.Direction;

/**
 * Door that requires a skill to open
 * @author Nicolaas
 *
 */
public class SkillDoor extends Door{
	
	public enum DoorSkill { AGILITY, CONSTRUCTION, CRAFTING, FARMING, FIREMAKING, FISHING, FLETCHING,
							HERBLORE, MAGIC, PRAYER, RUNECRAFTING, STRENGTH, SUMMONING, THIEVING, WOODCUTTING };
	
	private DoorSkill skill;
	private int skillLevel; 

	public SkillDoor(Room parent, Direction dir, DoorSkill skill, Tile tile) {
		super(parent, dir, tile);
		this.skill = skill;
	}
	
	public void setLevel(int level) {
		this.skillLevel = level;
	}

	public Boolean openDoor() {
		
		// TODO Needs Pathfind implementation
			return true;
	}

	@Override
	public DoorType getType() {
		return DoorType.SKILL;
	}
	
	public DoorSkill getSkill() {
		return skill;
	}
	
	public int getLevel() {
		return skillLevel;
	}
	
}
